]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
dnd: Make event handler actor reactive
authorCarlos Garnacho <carlosg@gnome.org>
Wed, 2 Feb 2022 16:05:32 +0000 (17:05 +0100)
committerCarlos Garnacho <carlosg@gnome.org>
Wed, 2 Feb 2022 16:14:37 +0000 (17:14 +0100)
Even though we coerce events on it through a grab, it does require
to be reactive to be considered a keyboard focus. Make it reactive
so it can handle key events again.

Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/5005
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2146>

js/ui/dnd.js

index d6a1f07c827854d776c6f8bbb79d1780811d0f86..9fbdf287383ccda21b3fae926d7c7f331e8bf2cf 100644 (file)
@@ -45,7 +45,7 @@ let currentDraggable = null;
 
 function _getEventHandlerActor() {
     if (!eventHandlerActor) {
-        eventHandlerActor = new Clutter.Actor({ width: 0, height: 0 });
+        eventHandlerActor = new Clutter.Actor({ width: 0, height: 0, reactive: true });
         Main.uiGroup.add_actor(eventHandlerActor);
         // We connect to 'event' rather than 'captured-event' because the capturing phase doesn't happen
         // when you've grabbed the pointer.